package com.han.service.user;

import com.han.pojo.Role;
import com.han.pojo.User;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;

public interface UserService {
    //用户登录，检测账户是否存在
    public User login(String userCode);

    //修改密码
    public int updateUser(int id, String userPassword);

    //查询用户数量
    public int getUserCount(String userName, int userRole);

    //通过条件查询-userList
    public List<User> getUserList(String userName, int userRole, int currentPageNo, int pageSize);

    //插入用户
    public int addUser(List<Object> user);

    //删除用户
    public boolean deleteUser(int id);

    //通过id查询用户
    public User getUserById(int id);

    //修改用户
    public int ModifyUser(User user);
}
